package com.coolcode.exception;

import lombok.Data;

@Data
public class CriticalException extends RuntimeException {

    private String errorCode;

    private String requestInfo;

    public CriticalException(String errorCode, String errorMessage, String requestInfo, Throwable e) {
        super(errorMessage, e);
        this.errorCode = errorCode;
        this.requestInfo = requestInfo;
    }
}
